import { registerAs } from '@nestjs/config';

import { AppConfig } from './interfaces/app-config.interface';

export default registerAs<AppConfig>('app', () => ({
  routeRootGroupName: process.env.ROUTE_ROOT_GROUP_NAME || '/family-expense',
  routeApiGroupName: process.env.ROUTE_API_GROUP_NAME || '/api',
}));
